package priv.mill.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import priv.mill.model.Employee;

@Mapper
public interface EmployeeMapper {
	
//	@Select("select * from employee where id=5")
	public List<Employee> findAll();
	
	public List<Employee> findAllTwo();
	
	public Employee findById(int id,String name);
//	@Insert("insert into employee (u_name,u_phone,u_age) value (#{name},#{phone},#{age})")
	public Boolean insert(Employee emp);
	
//	@Update("update employee set u_name=#{name},u_phone#{phone},u_age#{age} where id=#{id}")
	public Boolean update(Map<String, Object>map);


	

}
